package com.base.service.impl;

import com.base.mapper.voipmapper.PushNewsMapper;
import com.base.po.voip.PushNews;
import com.base.po.voip.PushNewsExample;
import com.base.service.PushNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("pushNewsService")
public class PushNewsServiceImpl implements PushNewsService {
	
	@Autowired
	private PushNewsMapper pushNewsMapper;


	@Override
	public int countByExample(PushNewsExample example) {
		return pushNewsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(PushNewsExample example) {
		return pushNewsMapper.countByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return pushNewsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(PushNews record) {
		return pushNewsMapper.insert(record);
	}

	@Override
	public int insertSelective(PushNews record) {
		return pushNewsMapper.insertSelective(record);
	}

	@Override
	public List<PushNews> selectByExample(PushNewsExample example) {
		return pushNewsMapper.selectByExample(example);
	}

	@Override
	public List<PushNews> selectByParentId(String parentid) {
		return pushNewsMapper.selectByParentId(parentid);
	}

	@Override
	public PushNews selectByPrimaryKey(Integer id) {
		return pushNewsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(PushNews record, PushNewsExample example) {
		return pushNewsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(PushNews record, PushNewsExample example) {
		return pushNewsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(PushNews record) {
		return pushNewsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(PushNews record) {
		return pushNewsMapper.updateByPrimaryKey(record);
	}
}
